<template>
  <ga-modal
    title-align="start"
    v-model:visible="visible"
    @close="handleCancel"
    :width="1000"
  >
    <template #title>查看视图</template>
    <slot/>
    <template #footer>
      <ga-button @click="visible = false">关闭</ga-button>
    </template>
  </ga-modal>
</template>

<script setup>
import { ref,reactive } from "vue";
const visible = ref(false);
const open = () => {
  visible.value = true;
};
defineExpose({ open });
</script>
